GET_DIRECTORY_PROPERTY(SOURCE_INCLUDE_DIRS INCLUDE_DIRECTORIES)
GET_DIRECTORY_PROPERTY(HHVM_DEFINITIONS COMPILE_DEFINITIONS)

configure_file(hhvm-gdb.in hhvm-gdb ESCAPE_QUOTES @ONLY)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/hhvm-gdb
  DESTINATION bin
  COMPONENT dev)

file(GLOB GDB_SCRIPTS
  RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
  FOLLOW_SYMLINKS *.py)

install(FILES ${GDB_SCRIPTS}
  DESTINATION "${CMAKE_INSTALL_LIBDIR}/hhvm/gdb"
  COMPONENT dev)
